package tech.yunjing.train.entity;


import java.io.Serializable;
import java.util.Date;

/**
 *
 * 该类是小红包实体类 根据红包的生成
 * 存入到Redis数据库中  使用HashOprations 其中红包名称当作表名
 * id作为key 红包的金额等字段作为value
 * Created by 刘飞 on 2017-6-7.
 */

public class SmallRedPacket implements Serializable {

    private Integer smallRedPacketId; //小红包id 用于查询小红包状态
    private Double smallRedPacketAmount;//小红包金额
    private Date creatDate;//小红包创建时间
    private Date getDate;  //小红包领取时间 用于确定修改小红包的状态
    private String userAccount;   //领红包者的账户  用来确定以后的明细
    private Integer status;// 0表示发布状态 1表示已领取状态 2表示删除状态


    @Override
    public String toString() {
        return "SmallRedPacket{" +
                "smallRedPacketId=" + smallRedPacketId +
                ", smallRedPacketAmount=" + smallRedPacketAmount +
                ", creatDate=" + creatDate +
                ", getDate=" + getDate +
                ", userAccount='" + userAccount + '\'' +
                ", status=" + status +
                '}';
    }

    public String getUserAccount() {
        return userAccount;
    }

    public void setUserAccount(String userAccount) {
        this.userAccount = userAccount;
    }

    public Integer getSmallRedPacketId() {
        return smallRedPacketId;
    }

    public void setSmallRedPacketId(Integer smallRedPacketId) {
        this.smallRedPacketId = smallRedPacketId;
    }

    public Double getSmallRedPacketAmount() {
        return smallRedPacketAmount;
    }

    public void setSmallRedPacketAmount(Double smallRedPacketAmount) {
        this.smallRedPacketAmount = smallRedPacketAmount;
    }

    public Date getCreatDate() {
        return creatDate;
    }

    public void setCreatDate(Date creatDate) {
        this.creatDate = creatDate;
    }

    public Date getGetDate() {
        return getDate;
    }

    public void setGetDate(Date getDate) {
        this.getDate = getDate;
    }



    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

}
